package mtn.bowen.yan.server.service;

import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXComboBox;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.image.ImageView;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.text.Font;
import javafx.scene.text.Text;

/**
 * @author <a href=mailto:yanbowen90@foxmail.com> bowen.yan </a>
 * @version 1.0
 * @description: TODO
 * @date 2021-10-26 11:01 AM
 */
public interface JavaFxUiService {

    HBox getHBox(double prefWidth, double prefHeight);

    HBox getHBox(Pos pos, double packing, Insets insets);

    HBox getTabHBox(Pos pos);

    void makeStyle(double prefWidth, double prefHeight, HBox hBox);

    VBox getVBox(Insets insets);

    JFXButton getButton(String text, String color);

    Text getText(String msg, Font font);

    Text getText(String msg);

    JFXComboBox getComboBox(int item);

    ImageView getImageView(double width, double height, String path);

    /**
     * 关闭场景成功
     *
     * @param key stage
     */
    void stageClose(String key);

    HBox getPictureHBox(Pos pos, Insets insets);

}
